package com.hy.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;
import org.springframework.format.annotation.DateTimeFormat;

import java.io.Serializable;
import java.time.LocalDateTime;
import java.util.Date;
import com.baomidou.mybatisplus.annotation.*;
import lombok.Data;

import java.util.Date;

@Data
@TableName("weekly")
public class Weekly {
    @TableId(type = IdType.AUTO)
    private Integer id;

    @TableField("file_url")
    private String fileUrl;

    @TableField("weekly_title")
    private String weeklyTitle;

    @TableField("weeklt_description") // 注意：表中字段有拼写错误（weeklt）
    private String weekltDescription;

    @TableField("like_numbers")
    private Long likeNumbers;

    @TableField("delete_flag")
    @TableLogic // 逻辑删除注解
    private Integer deleteFlag;

    @TableField("create_time")
    private Date createTime;

    @TableField("update_time")
    private Date updateTime;
}